@font-face {
  font-family: 'ClassicalChinese';
  src: url('https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&display=swap');
}

.test-container {
  width: 100%;
  min-height: 100vh;
  background-image: url('../img/background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  box-sizing: border-box;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  overflow: auto;
}

/* 导航栏样式 */
.nav-bar {
  width: 100%;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-item {
  font-family: 'ClassicalChinese', 'Ma Shan Zheng', serif;
  font-size: 1.2rem;
  color: #8B4513;
  cursor: pointer;
  transition: color 0.3s;
}

.nav-item:hover {
  color: #5D4037;
  text-decoration: underline;
}

.user-section {
  position: relative;
  /* 移除 display: flex 和 align-items: center */
}

.user-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid #8B4513;
  background-color: #f0e6d2;
  transition: transform 0.2s, box-shadow 0.2s;
}

.user-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 0 8px rgba(139, 69, 19, 0.6);
}

.user-avatar:active {
  transform: scale(0.95);
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.8rem;
  color: #8B4513;
  font-weight: bold;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-dropdown {
  position: absolute;
  top: 50px;
  right: 0;
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  padding: 10px;
  z-index: 1000;
  min-width: 100px;
  animation: dropdownFadeIn 0.2s;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-dropdown button {
  background-color: #8B4513;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'ClassicalChinese', 'Ma Shan Zheng', serif;
  width: 100%;
  white-space: nowrap;
}

.login-dropdown button:hover {
  background-color: #6D351A;
}

.content {
  width: 90%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.85);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  margin-top: 30px;
  margin-bottom: 30px;
}

/* 移除标题和info-section相关样式 */

/* 轮播图上方固定栏样式 */
.question-header {
  width: 100%;
  max-width: 900px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f0e6d2;
  padding: 15px 20px;
  border-radius: 10px 10px 0 0;
  border-bottom: 2px solid #8B4513;
  margin-bottom: 0;
  margin-top: 0; /* 添加顶部边距为0，确保没有额外空间 */
}

.question-instruction {
  font-family: 'ClassicalChinese', 'Ma Shan Zheng', serif;
  font-size: 1.2rem;
  color: #d9534f; /* 红色文本 */
  font-weight: bold;
}

.question-progress {
  font-family: 'ClassicalChinese', 'Ma Shan Zheng', serif;
  font-size: 1.2rem;
  color: #5D4037;
  background-color: rgba(255, 255, 255, 0.5);
  padding: 5px 15px;
  border-radius: 20px;
  border: 1px solid #8B4513;
}

/* 轮播图样式 */
.carousel {
  width: 100%;
  max-width: 900px;
  position: relative;
  overflow: visible;
  margin: 0;
  height: 400px;
  display: flex;
  align-items: center;
}

.carousel-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  background-color: white;
}

.carousel-container {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

/* 轮播图箭头按钮 */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.8);
  border: 2px solid #8B4513;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s;
  font-size: 20px;
  font-weight: bold;
  color: #8B4513;
}

.carousel-arrow:hover {
  background-color: #f0e6d2;
}

.carousel-arrow.prev {
  left: -20px;
}

.carousel-arrow.next {
  right: -20px;
}

/* 其他轮播图样式保持不变 */

/* 轮播图下方按钮栏样式 */
.action-buttons {
  width: 100%;
  max-width: 900px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f0e6d2;
  padding: 15px 20px;
  border-radius: 0 0 10px 10px;
  border-top: 2px solid #8B4513;
  margin-top: 0;
}

.left-buttons, .right-buttons {
  display: flex;
  gap: 15px;
}

/* 按钮样式 */
.return-btn, .login-btn, .restart-btn, .reset-btn, .confirm-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-family: 'ClassicalChinese', 'Ma Shan Zheng', serif;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
}

.confirm-btn.submit {
  background-color: #e67e22;
  font-weight: bold;
}

.return-btn {
  background-color: #5D4037; /* 棕色 */
  color: white;
}

.login-btn {
  background-color: #2196F3; /* 蓝色 */
  color: white;
}

.restart-btn {
  background-color: #FF9800; /* 橙色 */
  color: white;
}

.reset-btn {
  background-color: #8B4513; /* 棕色 */
  color: white;
}

.confirm-btn {
  background-color: #4CAF50; /* 绿色 */
  color: white;
}

.return-btn:hover, .login-btn:hover, .restart-btn:hover, .reset-btn:hover, .confirm-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.return-btn:hover {
  background-color: #4a332d;
}

.login-btn:hover {
  background-color: #0b7dda;
}

.restart-btn:hover {
  background-color: #e68a00;
}

.reset-btn:hover {
  background-color: #6D351A;
}

.confirm-btn:hover {
  background-color: #3e8e41;
}



/* 功能提示小弹窗样式 */
.feature-prompt-mini {
  position: absolute;
  z-index: 1000;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  width: 220px;
  animation: popIn 0.2s ease-out;
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.prompt-arrow {
  position: absolute;
  top: -8px;
  left: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid white;
}

.prompt-content {
  padding: 15px;
}

.prompt-content p {
  margin: 0 0 12px 0;
  font-family: 'ClassicalChinese', 'Ma Shan Zheng', serif;
  font-size: 1rem;
  color: #5D4037;
  text-align: center;
}

.prompt-buttons {
  display: flex;
  justify-content: space-between;
}

.prompt-buttons button {
  padding: 6px 12px;
  border-radius: 4px;
  font-family: 'ClassicalChinese', 'Ma Shan Zheng', serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.prompt-buttons .cancel-btn {
  background-color: #f0e6d2;
  color: #8B4513;
  border: 1px solid #d1c4b0;
}

.prompt-buttons .cancel-btn:hover {
  background-color: #e6d8c0;
}

.prompt-buttons .login-btn {
  background-color: #8B4513;
  color: white;
  border: none;
}

.prompt-buttons .login-btn:hover {
  background-color: #6D351A;
}
.question-title {
  font-family: 'ClassicalChinese', 'Ma Shan Zheng', serif;
  font-size: 1.5rem;
  color: #000000; /* 修改为黑色 */
  margin-bottom: 20px;
}

.question-text {
  font-size: 1.2rem;
  color: #000000; /* 修改为黑色 */
  margin-bottom: 40px;
  line-height: 1.5;
}

.options-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.option-item {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  border: 2px solid #d1c4b0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  flex: 1;
  min-width: 80px;
  background-color: #f8f5f0;
}

.option-item:hover {
  background-color: #f0e6d2;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.option-item.selected {
  background-color: #8B4513;
  border-color: #8B4513;
  color: white;
}

.option-circle {
  width: 20px;
  height: 20px;
  border: 2px solid #d1c4b0;
  border-radius: 50%;
  margin-right: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s;
}

.option-item.selected .option-circle {
  border-color: white;
}

.option-inner {
  width: 12px;
  height: 12px;
  background-color: white;
  border-radius: 50%;
}

.option-label {
  font-family: 'ClassicalChinese', 'Ma Shan Zheng', serif;
  font-size: 1rem;
  color: #000000; /* 修改为黑色 */
}

.option-item.selected .option-label {
  color: white; /* 选中时保持白色 */
}

/* 其他轮播图样式保持不变 */

/* 轮播图下方按钮栏样式 */
.action-buttons {
  width: 100%;
  max-width: 900px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f0e6d2;
  padding: 15px 20px;
  border-radius: 0 0 10px 10px;
  border-top: 2px solid #8B4513;
  margin-top: 0;
}

.left-buttons, .right-buttons {
  display: flex;
  gap: 15px;
}

/* 按钮样式 */
.return-btn, .login-btn, .restart-btn, .reset-btn, .confirm-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-family: 'ClassicalChinese', 'Ma Shan Zheng', serif;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
}

.return-btn {
  background-color: #5D4037; /* 棕色 */
  color: white;
}

.login-btn {
  background-color: #2196F3; /* 蓝色 */
  color: white;
}

.restart-btn {
  background-color: #FF9800; /* 橙色 */
  color: white;
}

.reset-btn {
  background-color: #8B4513; /* 棕色 */
  color: white;
}

.confirm-btn {
  background-color: #4CAF50; /* 绿色 */
  color: white;
}

.return-btn:hover, .login-btn:hover, .restart-btn:hover, .reset-btn:hover, .confirm-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.return-btn:hover {
  background-color: #4a332d;
}

.login-btn:hover {
  background-color: #0b7dda;
}

.restart-btn:hover {
  background-color: #e68a00;
}

.reset-btn:hover {
  background-color: #6D351A;
}

.confirm-btn:hover {
  background-color: #3e8e41;
}



/* 功能提示小弹窗样式 */
.feature-prompt-mini {
  position: absolute;
  z-index: 1000;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  width: 220px;
  animation: popIn 0.2s ease-out;
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.prompt-arrow {
  position: absolute;
  top: -8px;
  left: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid white;
}

.prompt-content {
  padding: 15px;
}

.prompt-content p {
  margin: 0 0 12px 0;
  font-family: 'ClassicalChinese', 'Ma Shan Zheng', serif;
  font-size: 1rem;
  color: #5D4037;
  text-align: center;
}

.prompt-buttons {
  display: flex;
  justify-content: space-between;
}

.prompt-buttons button {
  padding: 6px 12px;
  border-radius: 4px;
  font-family: 'ClassicalChinese', 'Ma Shan Zheng', serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.prompt-buttons .cancel-btn {
  background-color: #f0e6d2;
  color: #8B4513;
  border: 1px solid #d1c4b0;
}

.prompt-buttons .cancel-btn:hover {
  background-color: #e6d8c0;
}

.prompt-buttons .login-btn {
  background-color: #8B4513;
  color: white;
  border: none;
}

.prompt-buttons .login-btn:hover {
  background-color: #6D351A;
}

/* 未作答提示弹窗样式 */
.unanswered-alert {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  background-color: white;
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid #d9534f;
  animation: popIn 0.2s ease-out;
  max-width: 300px;
  text-align: center;
}

.unanswered-alert .alert-content p {
  margin: 0;
  font-family: 'ClassicalChinese', 'Ma Shan Zheng', serif;
  font-size: 1rem;
  color: #d9534f;
}

.question-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.question-jump {
  display: flex;
  align-items: center;
  gap: 8px;
}

.jump-input {
  width: 60px;
  padding: 5px 10px;
  border: 1px solid #8B4513;
  border-radius: 4px;
  font-family: 'ClassicalChinese', 'Ma Shan Zheng', serif;
  text-align: center;
}

.jump-btn {
  padding: 5px 12px;
  background-color: #8B4513;
  color: white;
  border: none;
  border-radius: 4px;
  font-family: 'ClassicalChinese', 'Ma Shan Zheng', serif;
  cursor: pointer;
  transition: background-color 0.3s;
}

.jump-btn:hover {
  background-color: #6D351A;
}